--
-- Author: shunguo.chen
-- Date: 2016-10-20 14:11:43
--
-- RewardSignVo

local fileName = string.getModeName(...)
local ClassRef = class(fileName)

function ClassRef:ctor(data)
	if data then
		self:init(data)
	end
end

-- "ID"        = "2016100101"
-- "dailyicon" = "daily_icon_weekend"
-- "day"       = "1"
-- "month"     = "10"
-- "rewards"   = "1|79900101|1"
-- "year"      = "2016"
-- "bAlreadyGot"  = true/false
function ClassRef:init(data)
	for k,v in pairs(data) do
		self[k] = v
	end

	self.itemData = UD:parseRewardToBagItem(self.rewards)
	self.name = string.format(L("tips_2000233"), self.month, self.day)
end

function ClassRef:setAlreadyGot(b)
	self.bAlreadyGot = b
end

return ClassRef